//
//  main.m
//  delegateDemo
//
//  Created by zhouxiaobo on 15/10/26.
//  Copyright © 2015年 mapath. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Something.h"
#import "Person.h"
#import "Jack.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        Person *p = [[Person alloc]init];
        Jack *j = [[Jack alloc]init];
        
        p.delegate = j;
        
        if(p.delegate && [p.delegate respondsToSelector:@selector(doSomething:)]){
            [p.delegate doSomething:@"zhou xiao bo hello"];
        }
    }
    return 0;
}
